
/**		
 * 
 *	style.Style
 *	
 *	@version 1.00 | May 28, 2010
 *	@author Fraser Hobbs
 *  
 **/
 
package mx.pacu.style 
{
	import flash.events.Event;
	import flash.events.EventDispatcher;

	/**
	 * @author Fraser Hobbs
	 */
	public class CSS 
	{
		private static var _eventDispatcher : EventDispatcher = new EventDispatcher();
		
		public static function addEventListener(type : String, listener : Function, useCapture : Boolean = false, priority : int = 0, useWeakReference : Boolean = false) : void
		{
			_eventDispatcher.addEventListener(type, listener, useCapture, priority, useWeakReference);
		}

		public static function dispatchEvent(event : Event) : Boolean
		{
			return _eventDispatcher.dispatchEvent(event);
		}

		public static function hasEventListener(type : String) : Boolean
		{
			return _eventDispatcher.hasEventListener(type);
		}

		public static function removeEventListener(type : String, listener : Function, useCapture : Boolean = false) : void
		{
			_eventDispatcher.removeEventListener(type, listener, useCapture);
		}

		public static function willTrigger(type : String) : Boolean
		{
			return _eventDispatcher.willTrigger(type);
		}
		
		public static function getStyles(__styles:Styles, __hierachy:Array):Styles
		{
			return __styles;
		}

		private static function updated():void
		{
			dispatchEvent(new Event(Event.CHANGE));
		}
	}
}
